package com.net.xpay.common.dao.notify;

import com.net.xpay.common.domain.notify.ChargeNotifyRecord;
import com.net.xpay.common.model.search.ChargeNotifyRecordSearchModel;
import com.net.common.dao.Page;
import com.net.common.dao.PagedMapper;
import com.net.common.annotation.DataCommon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@DataCommon
@Repository
public interface ChargeNotifyRecordMapper extends PagedMapper<Long, ChargeNotifyRecord> {
    List<ChargeNotifyRecord> search(@Param("searchModel") ChargeNotifyRecordSearchModel searchModel, @Param("page") Page page);

    long searchCount(@Param("searchModel") ChargeNotifyRecordSearchModel searchModel);

    int deleteFinishedRecord(@Param("deadline") LocalDateTime deadline);
}
